<template>
  <div class="slot-demo">
    我是组件内部的信息 {{ x + y }}
    <br />
    <slot :x="x" :y="y"></slot>
  </div>
</template>

<script>
export default {
  name: "slot-demo",
  data() {
    return {
      x: 10,
      y: 20,
    };
  },
};
</script>